import React, { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import { Button } from 'antd';



function Index() {
  const [count, setCount] = useState(0)

  return (
    <div>
      <Button type="primary" onClick={() => setCount((count) => count + 1)}>
        count is: {count}
      </Button>
      <Link to="/about">
        <Button>about</Button>
      </Link>
    </div>
  );
}

export default Index;
